package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Description
 * @Author shh
 * @Date 2025-10-15
 */
public interface ReportService {
    /**
     * 获取营业额统计
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);


    /**
     * 获取用户统计
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * 获取订单统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO ordersStatistics(LocalDate begin, LocalDate end);
    /**
     * 获取top10订单
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTop10Orders(LocalDate begin, LocalDate end);
    /**
     * 导出订单数据
     * @param response
     */
    void export(HttpServletResponse response) throws IOException;
}
